package cn.yangliu.oauth2.web;

import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.security.core.Authentication;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;
import springfox.documentation.annotations.ApiIgnore;

/**
 * @author 杨柳
 * @date 2019-04-17
 */
@RestController
@Api
public class UserController {

    @GetMapping("/user")
    @ApiOperation("user")
    public Authentication user(@ApiIgnore Authentication user){
        return user;
    }
}
